<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link type="text/css" rel="stylesheet" href="/public/static/H-ui/static/h-ui/css/H-ui.min.css"/>
    <link type="text/css" rel="stylesheet" href="/public/static/system/system.css">
    <title>Document</title>
    <style>
        body{ 
            padding: 50px;
        }
        .tabBarmore{
            font-size: 20px;
        }
    </style>
</head>
<body>
    <div id="tab_demo" class="HuiTab">
        <div class="pt">
            <a href="javascript:history.back(-1);">&lt&lt返回课程管理</a>
        </div>
        <div class="tabBar clearfix tabBarmore">
            {$span}
        </div>
        <div class="tabCon">
            <div class="col-md-1 {$Ustatus=='1'?'':'none'}"><a href="{:url('index/Sign/addsign')}" class="btn btn-primary radius t">新增签到</a></div>
            <form action="" method="GET" role="form" class="col-md-11 t {$Ustatus=='1'?'':'none'}">
                <div class="col-md-3">
                    <span class="select-box input-text radius size-M">
                        <select class="select" size="1" name="class">
                            <option value="" selected>选择班级...</option>
                            {volist name='classlist' id="classlist" empty = "$empty"}
                                <option value="{$classlist.class_Id}">{$classlist.Name}</option>
                            {/volist}
                        </select>
                    </span>
                </div>

                <div class="col-md-3">
                    <div class="col-md-3">
                        <button type="submit" class="btn btn-default radius size-M">搜索</button>
                    </div>
                    <div class="col-md-3">
                        <button type="button" class="btn btn-default radius size-M" id="re">重置</button>
                    </div>    
                </div>
            </form>
            <table class="table table-border table-hover">    
                {volist name='signlist' id="signlist" empty = "$hint"}
                <tr>
                    <td align="center">{$signlist.sname}</td>
                    <td align="center">{$signlist.Name}</td>
                    <td align="center">开始时间：{$signlist.begin}</td>
                    <td align="center">结束时间：{$signlist.end}</td>
                    <td align="center"><a class="more" data-ustatus="{$Ustatus}" data-stu="{:url('index/Sign/sign',['sign_Id'=>$signlist.sign_Id])}" data-tea="{:url('index/Sign/signresult',['sign_Id'=>$signlist.sign_Id])}">详情>></a></td>
                </tr>
                {/volist}
            </table>
        </div>
        <div class="tabCon">
            <table class="table table-border table-hover">
                <a href="{:url('index/Sign/addclass')}" class="btn btn-primary radius t">新建班级</a>
                {volist name='class' id="class" empty = "$hint"}
                <tr>
                    <td align="center">{$class.Name}</td>
                    <td align="center"><a href="{:url('index/Classes/index',['class_Id'=>$class.class_Id])}">详情>></a></td>
                </tr>
                {/volist}
            </table>
        </div>
    </div>
    <script type="text/javascript" src="/public/static/H-ui/lib/jquery/1.9.1/jquery.min.js"></script>
    <script type="text/javascript" src="/public/static/H-ui/static/h-ui/js/H-ui.js"></script>
    <script>
        $(function(){
            $.Huitab("#tab_demo .tabBar span","#tab_demo .tabCon","current","click","0")
            
        });

        $(".more").click(function(){
            let ustatus = $(this).data('ustatus');
            if(ustatus==0){
                let stu = $(this).data('stu');
                location.href=stu;
            }
            if(ustatus==1){
                let tea = $(this).data('tea');
                location.href=tea;
            }
        })
    </script>
</body>
</html>